Optimal. Leaf size=47 \[ \frac {a (B+C) \sin (c+d x)}{d}+\frac {1}{2} a x (2 B+C)+\frac {a C \sin (c+d x) \cos (c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {3029, 2734} \[ \frac {a (B+C) \sin (c+d x)}{d}+\frac {1}{2} a x (2 B+C)+\frac {a C \sin (c+d x) \cos (c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2734
Rule 3029
Rubi steps
\begin {align*} \int (a+a \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x) \, dx &=\int (a+a \cos (c+d x)) (B+C \cos (c+d x)) \, dx\\ &=\frac {1}{2} a (2 B+C) x+\frac {a (B+C) \sin (c+d x)}{d}+\frac {a C \cos (c+d x) \sin (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 44, normalized size = 0.94 \[ \frac {a (4 (B+C) \sin (c+d x)+4 B d x+C \sin (2 (c+d x))+2 c C+2 C d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 38, normalized size = 0.81 \[ \frac {{\left (2 \, B + C\right )} a d x + {\left (C a \cos \left (d x + c\right ) + 2 \, {\left (B + C\right )} a\right )} \sin \left (d x + c\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.31, size = 93, normalized size = 1.98 \[ \frac {{\left (2 \, B a + C a\right )} {\left (d x + c\right )} + \frac {2 \, {\left (2 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 2 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3 \, C a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{2}}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 57, normalized size = 1.21 \[ \frac {a C \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+a B \sin \left (d x +c \right )+a C \sin \left (d x +c \right )+B \left (d x +c \right ) a}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.47, size = 55, normalized size = 1.17 \[ \frac {4 \, {\left (d x + c\right )} B a + {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} C a + 4 \, B a \sin \left (d x + c\right ) + 4 \, C a \sin \left (d x + c\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.05, size = 50, normalized size = 1.06 \[ B\,a\,x+\frac {C\,a\,x}{2}+\frac {B\,a\,\sin \left (c+d\,x\right )}{d}+\frac {C\,a\,\sin \left (c+d\,x\right )}{d}+\frac {C\,a\,\sin \left (2\,c+2\,d\,x\right )}{4\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int B \cos {\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx + \int B \cos ^{2}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx + \int C \cos ^{2}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx + \int C \cos ^{3}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________